# 打开windows快捷方式

import time

from xqol_login.open_game_utils import do_open_game_window, do_login_game

desktop_path = "C:\\Users\\hujun\\Desktop\\xqol_2560x1440_100\\"
# 等待打开的账号
account_list = [

    {"window_title": "xqApp xqolhm27", "link_name": "xqolhm\\xqolhm27 热潮", "x": 310 * 0 + 7, "y": 0},
    {"window_title": "xqApp xqolhm28", "link_name": "xqolhm\\xqolhm28 热泪", "x": 310 * 1 + 7, "y": 0},
    {"window_title": "xqApp xqolhm29", "link_name": "xqolhm\\xqolhm29 热切", "x": 310 * 2 + 7, "y": 0},
    {"window_title": "xqApp xqolhm30", "link_name": "xqolhm\\xqolhm30 热腾", "x": 310 * 3 + 7, "y": 0},

    # 第二排
    { "window_title": "xqApp A6874", "link_name": "xqol94\\A6874 酸菜干拌面", "x": 310 * 0 + 7, "y": 473 },
    { "window_title": "xqApp A8353", "link_name": "xqol94\\A8353 星尘", "x": 310 * 1 + 7, "y": 473 },
]

def login_94():
    # 打开游戏
    my_game_windows = do_open_game_window(desktop_path, account_list)
    print(my_game_windows)
    # 登录游戏 耐心等待会，电脑性能不行的话
    time.sleep(10)
    do_login_game(account_list)

if __name__ == '__main__':
    login_94()